// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.QuestionAnswerDao;
import com.liuxinlong.modules.entity.QuestionAnswer;
import com.liuxinlong.modules.mapper.QuestionAnswerMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年9月27日
 */
@Service
public class QuestionAnswerDaoImpl extends ServiceImpl<QuestionAnswerMapper, QuestionAnswer> implements QuestionAnswerDao {

	@Override
	public List<QuestionAnswer> pageQuestionAnswer(Map<String, Object> queryParam) {
		return baseMapper.pageQuestionAnswerList(queryParam);
	}

	@Override
	public int getQuestionAnswerCount(Map<String, Object> queryParam) {
		return baseMapper.getQuestionAnswerCount(queryParam);
	}

	@Override
	public List<QuestionAnswer> getQuestionAnswerList() {
		return baseMapper.getQuestionAnswerList();
	}

	@Override
	public QuestionAnswer selectByIndex(int showIndex) {
		return baseMapper.selectByIndex(showIndex);
	}

	@Override
	public List<QuestionAnswer> queryFaqListByParam(Map<String, Object> queryParam) {
		return baseMapper.queryFaqListByParam(queryParam);
	}
}
